package com.itheima.demo12_匿名内部类;

abstract class Animal{
    public abstract void eat();
}
public class Test {
    public static void main(String[] args) {
        Animal anl1 = new Animal() {
            @Override
            public void eat() {
                System.out.println("匿名内部类的eat...");
            }
        };
        anl1.eat();
    }
}
